package com.hdu.heihei.dao.impl;


import com.hdu.heihei.beans.User;
import com.hdu.heihei.dao.BaseDao;
import com.hdu.heihei.dao.UserDao;

import java.util.List;

/**
 * @author fengyuan
 */
public class UserDaoImpl extends BaseDao implements UserDao {

    @Override
    public List<User> list() {
        String hql = "FROM User";
        return getSession().createQuery(hql).list();
    }

}